from app import STEPS, DRIVER
from steps import Steps
from util.read_data import read_yaml_data

from form import form

yaml_path = "./new_demand.yaml"

yaml_data = read_yaml_data(yaml_path)


steps = yaml_data['steps']

if steps[0]['type'] != 'open':
    steps = [{
        'type': 'open',
        'val': 'http://192.168.2.101:18090/#/workbench/index'
    }] + steps

STEPS.run(steps, DRIVER)